<template>
  <div id="app">
    <div>Monibuca</div>
    <Menu mode="horizontal" :active-name="selectedMenu" style="position: absolute;top: 0;right: 0;">
      <MenuItem name="home" to="/">首页</MenuItem>
      <MenuItem name="docs" to="/docs" target="_blank">文档</MenuItem>
      <MenuItem name="console" to="console">控制台</MenuItem>
      <Submenu name="plugins">
        <template slot="title">内置插件</template>
        <MenuGroup title="发布者/订阅者">
          <MenuItem name="cluster" target="_blank" to="/docs/plugins.html#cluster插件">集群</MenuItem>
          <MenuItem name="rtmp" target="_blank" to="/docs/plugins.html#rtmp插件">RTMP</MenuItem>
        </MenuGroup>
        <MenuGroup title="订阅者">
          <MenuItem name="jessica" target="_blank" to="/docs/plugins.html#jessica插件">Jessica</MenuItem>
          <MenuItem name="HDL" target="_blank" to="/docs/plugins.html#http-flv插件">Http-Flv</MenuItem>
          <MenuItem name="record" target="_blank" to="/docs/plugins.html#recordflv插件">录制Flv</MenuItem>
        </MenuGroup>
        <MenuGroup title="发布者">
          <MenuItem name="HLS" target="_blank" to="/docs/plugins.html#hls插件">HLS</MenuItem>
          <MenuItem name="TS" target="_blank" to="/docs/plugins.html#hls插件">TS</MenuItem>
        </MenuGroup>
        <MenuGroup title="钩子">
          <MenuItem name="Auth" target="_blank" to="/docs/plugins.html#校验插件">验证</MenuItem>
          <MenuItem name="QoS">QoS</MenuItem>
          <MenuItem name="gateway" target="_blank" to="/docs/plugins.html#网关插件">网关</MenuItem>
        </MenuGroup>
      </Submenu>
      <MenuItem name="4" to="about">支持</MenuItem>
    </Menu>
    <router-view class="content"></router-view>
    <div>Copyright © 2019-2020 dexter 苏ICP备20001212号</div>
  </div>
</template>

<script>
export default {
  name: "app",
  data() {
    return {
      selectedMenu: "home"
    };
  }
};
</script>

<style>
body,
html {
  height: 100%;
}
#app {
  font-family: "Avenir", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #184c18;
  position: relative;
  height: 100%;
}

#app > div:first-child {
  position: absolute;
  top: 10px;
  left: 30px;
  font-size: x-large;
}
.content {
  padding-top: 60px;
}
</style>
